Optimal. Leaf size=48 \[ \frac {2 F\left (\left .a-\frac {\pi }{4}+b x\right |2\right )}{3 b}-\frac {\csc ^2(a+b x) \sqrt {\sin (2 a+2 b x)}}{3 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {4385, 2720}
\begin {gather*} \frac {2 F\left (\left .a+b x-\frac {\pi }{4}\right |2\right )}{3 b}-\frac {\sqrt {\sin (2 a+2 b x)} \csc ^2(a+b x)}{3 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2720
Rule 4385
Rubi steps
\begin {align*} \int \frac {\csc ^2(a+b x)}{\sqrt {\sin (2 a+2 b x)}} \, dx &=-\frac {\csc ^2(a+b x) \sqrt {\sin (2 a+2 b x)}}{3 b}+\frac {2}{3} \int \frac {1}{\sqrt {\sin (2 a+2 b x)}} \, dx\\ &=\frac {2 F\left (\left .a-\frac {\pi }{4}+b x\right |2\right )}{3 b}-\frac {\csc ^2(a+b x) \sqrt {\sin (2 a+2 b x)}}{3 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.03, size = 82, normalized size = 1.71 \begin {gather*} -\frac {\csc ^2(a+b x) \sqrt {\sin (2 (a+b x))}+\frac {\sqrt {2} F\left (\text {ArcSin}(\cos (a+b x)-\sin (a+b x))\left |\frac {1}{2}\right .\right ) (\cos (a+b x)+\sin (a+b x))}{\sqrt {1+\sin (2 (a+b x))}}}{3 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 180.00, size = 0, normalized size = 0.00 \[\int \frac {\csc ^{2}\left (x b +a \right )}{\sqrt {\sin \left (2 x b +2 a \right )}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains complex when optimal does not.
time = 1.22, size = 101, normalized size = 2.10 \begin {gather*} -\frac {\sqrt {2 i} {\left (\cos \left (b x + a\right )^{2} - 1\right )} {\rm ellipticF}\left (\cos \left (b x + a\right ) + i \, \sin \left (b x + a\right ), -1\right ) + \sqrt {-2 i} {\left (\cos \left (b x + a\right )^{2} - 1\right )} {\rm ellipticF}\left (\cos \left (b x + a\right ) - i \, \sin \left (b x + a\right ), -1\right ) - \sqrt {2} \sqrt {\cos \left (b x + a\right ) \sin \left (b x + a\right )}}{3 \, {\left (b \cos \left (b x + a\right )^{2} - b\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {1}{{\sin \left (a+b\,x\right )}^2\,\sqrt {\sin \left (2\,a+2\,b\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________